package org.MobileSales;

import java.io.IOException;

import org.MobileSales.R;
import org.MobileSales.DataManagement.DatabaseHelper;
import org.MobileSales.DataManagement.ProductsManager;
import org.MobileSales.Model.Products.Tax;

import android.app.Activity;
import android.os.Bundle;

public class ClientActivity extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        initDatabase();
        
        ProductsManager pm = new ProductsManager(this);
        Tax t1 = pm.GetTax(1);
        //Tax ins2 = new Tax();
       // ins2.Value = 666.666;
       // pm.StoreTax(ins2);
        
        Tax ret = pm.GetTax(1);
        Tax co = pm.GetTax(666);
    }
    
	private void initDatabase() {
    	DatabaseHelper dbHelper = new DatabaseHelper(this);
    	try {
			dbHelper.createDatabase();
		} catch (IOException e) {
			e.printStackTrace();
		}
    }
}